package cnpm02.j2ee.group3.logic.dao.impl;

import javax.ejb.Local;

import cnpm02.j2ee.group3.logic.dao.generic.AbstractTranslationEntityDao;
import cnpm02.j2ee.group3.model.LanguageTranslation;

/**
 * Dao for {@link LanguageTranslation}
 * 
 * @author BINH
 * @version 1.0
 */
@Local
public interface LanguageTranslationDao extends
		AbstractTranslationEntityDao<LanguageTranslation> {
	final String COMPONENT_NAME = "languageTranslationDao";
	final String SELECT_ALL_QUERY = "from LanguageTranslation";
	final String SELECT_ALL_BY_LOCALE_QUERY = "from LanguageTranslation l where l.supportedLanguage = :supportedLanguage order by l.translation";
	final String SELECT_ENTITY_BY_LOCALE_QUERY = "from LanguageTranslation l where l.language = :language and l.supportedLanguage = :supportedLanguage";
}
